package com.zxl.grocery;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * Grocery Web程序启动类 当程序打成war时，作为一个核心的入口
 * 兼容Tomcat 使程序打成war后，放入tomcat也能启动
 * Created by Lzx on 2017/7/23.
 */
public class GroceryServletInitializer extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(GroceryApplication.class);
    }

}
